package com.linhui.provider;

import com.linhui.common.service.UserService;
import com.linhui.provider.service.impl.UserServiceImpl;
import com.linhui.rpc.registry.LocalRegistry;
import com.linhui.rpc.server.HttpServer;
import com.linhui.rpc.server.impl.VertxHttpServer;

/**
 * @author: 临晖
 * @since: 2024-05-10
 */
public class EasyProvideExample {
    public static void main(String[] args) {
        //注册服务
        LocalRegistry.register(UserService.class.getName(), UserServiceImpl.class);
        //启动web服务
        HttpServer httpServer = new VertxHttpServer();
        httpServer.doStart(8080);
    }
}
